#ifndef __AT24CXX_H
#define __AT24CXX_H

#include "iic.h"

void AT24CXX_init(void);
u8 AT24CXX_readOneByte(u16 readAddr);
void AT24CXX_writeOneByte(u16 writeAddr, u8 data);
u32 AT24CXX_readLenByte(u16 readAddr, u8 wordLen);
void AT24CXX_writeLenByte(u16 writeAddr, u32 data, u8 wordLen);
u8 AT24CXX_check(void);
void AT24CXX_read(u16 readAddr, u8* rxBuf, u16 numByteToRead);
void AT24CXX_pageRead(u16 readAddr, u8* rxBuf, u16 numByteToRead);
void AT24CXX_write(u16 writeAddr, u8* txBuf, u16 numByteToWrite);
void AT24CXX_pageWrite(u16 writeAddr, u8* txBuf, u16 numByteToWrite);

#endif
